#include<stddef.h>
#include<stdio.h>


#define my_offsetof(type,member)    (size_t)&(((type*)0)->member)

typedef struct
{
	int age;
	char name[8];
	int num;
}Student;

int main()
{
	printf("%d\n", offsetof(Student, name));
	printf("%d\n", my_offsetof(Student, name));

	return 0;
}